//
//  OosNamespaces.m
//  com.oos.kraken
//
//  Created by Pablo Gonzalez on 2/14/11.
//  Copyright 2011 11870.com. All rights reserved.
//

#import "OosNamespaces.h"

NSString *const OPEN_SEARCH_PREFIX = @"os";
NSString *const OPEN_SEARCH_NAMESPACE = @"http://a9.com/-/spec/opensearch/1.1/";
NSString *const OOS_PREFIX = @"oos";
NSString *const OOS_NAMESPACE = @"http://11870.com/api/oos";
NSString *const APP_PREFIX = @"app";
NSString *const APP_NAMESPACE = @"http://www.w3.org/2007/app";
NSString *const GEORSS_PREFIX = @"georss";
NSString *const GEORSS_NAMESPACE = @"http://www.georss.org/georss";
NSString *const GML_PREFIX = @"gml";
NSString *const GML_NAMESPACE = @"http://www.opengis.net/gml";
NSString *const ATOM_PREFIX = @"";
NSString *const ATOM_NAMESPACE = @"http://www.w3.org/2005/Atom";
NSString *const ATOM2_PREFIX = @"atom";
NSString *const ATOM2_NAMESPACE = @"http://www.w3.org/2005/Atom";
NSString *const ACTIVITY_PREFIX = @"activity";
NSString *const ACTIVITY_NAMESPACE = @"http://activitystrea.ms/spec/1.0/";

@implementation OosNamespaces

+ (NSString *) coreProtocolVersion:(NSString *)serviceVersion {
	return @"2.0";
}

+ (NSDictionary *) defaultNamespace {
	NSMutableDictionary *namespaces;
	
	namespaces = [NSMutableDictionary dictionaryWithObjectsAndKeys: 
				  OOS_NAMESPACE, OOS_PREFIX,
				  OPEN_SEARCH_NAMESPACE, OPEN_SEARCH_PREFIX,
				  APP_NAMESPACE, APP_PREFIX,
				  GEORSS_NAMESPACE, GEORSS_PREFIX,
				  ATOM_NAMESPACE, ATOM_PREFIX,
				  ATOM_NAMESPACE, ATOM2_PREFIX,
				  GML_NAMESPACE, GML_PREFIX,
				  ACTIVITY_NAMESPACE, ACTIVITY_PREFIX,
				  nil];
	return namespaces;
}

@end
